<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
</head>

<body>
<div th:replace="~{commons/commons::topbar}"></div>

<div class="container-fluid">
    <div class="row">
        <div th:replace="~{commons/commons::sidebar(active='addDor.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <form action="/dormitory/save" th:object="${dormitory}" method="post">
                <div class="form-group">
                    <label>楼号</label>
                    <input type="text" class="form-control" name="buildingNO"  placeholder="例：9座">
                </div>
                <div class="form-group">
                    <label>宿舍号</label>
                    <input type="text" class="form-control" name="dormitoryNo"  placeholder="例：9A309">
                </div>
                <div class="form-group">
                    <label>宿舍类型</label>
                    <select class="form-control" name="residentNumber"  >
                        <option th:value="4">四人间</option>
                        <option th:value="6">六人间</option>
                    </select>
                </div>
                <!--<div class="form-group">
                    <label>入住学生:</label>
                    <select class="form-control" name="students" th:filed="${dormitory.students}" multiple="multiple">
                        <option th:each="student : ${allStudents}" th:value="${student.getId}" th:text="${student.getName}"></option>
                    </select>
                </div>-->

                <button class="btn btn-primary" type="submit">添加</button>
            </form>
        </main>
    </div>
</div>



</body>

</html>